#!/usr/bin/env python

def main(file):

    from mbio.workflows.single import SingleWorkflow
    from biocluster.wsheet import Sheet


    data = {
            "id": "RFTEST",
            "type": "tool",
            "name": "graph.rf",
            "instant": False,
            "IMPORT_REPORT_DATA": True,
            "options": {
                        "input": file
                        }
           }
    wsheet = Sheet(data=data)
    wf = SingleWorkflow(wsheet)
    wf.run()

if __name__ == '__main__':
    
    import argparse

    ap= argparse.ArgumentParser(description='rf test')
    ap.add_argument('file', help='input file')
    # ap.add_argument('sub', nargs='?', help='sub')
    ap.add_argument('-p', '--prefix', help='out prefix', default='1')
    # ap.add_argument('-r', '--rename', help='False default', action="store_true")
    args= ap.parse_args()
    
    main(args.file)
